 package CurtainDesign;

 import NewOrderXmlbean.OrderDocument;
 import NewOrderXmlbean.OrderDocument.Factory;
 import NewOrderXmlbean.Orderinfo;
 import java.io.File;
 import javax.swing.JOptionPane;

 public abstract class OrderFile
 {
   public boolean ReadOrderFile(String orderfile)
   {
     return true;
   }

   public String ReadPipeIndex(String orderfile)
   {
     String tmp = "";
     try {
       File xmlfile = new File(orderfile);
       OrderDocument doc = OrderDocument.Factory.parse(xmlfile);
       Orderinfo orderinfo = doc.getOrder();

       tmp = orderinfo.getOrderindex();
       if (tmp != null) {
         return tmp;
       }
       JOptionPane.showMessageDialog(null, "读取PipeIndex错误，请检查", "读文件错误", 0);
     }
     catch (Exception e)
     {
       e.printStackTrace();
     }
     return tmp;
   }

   public void WriteOrderFile(String orderfile, boolean newopenedfile, boolean override)
   {
   }
 }

/* Location:           C:\Users\Administrator\Desktop\奥特百叶窗\Shutter DesignerV3.1\CurtainDesign.jar
 * Qualified Name:     CurtainDesign.OrderFile
 * JD-Core Version:    0.6.0
 */